FROM python:3.9

# set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

COPY requirements.txt .

# install python dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update

COPY . .

gunicorn
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "run:app"]

# FROM libreoffice/headless
# RUN apt-get update && apt-get install -y \ 
#     libreoffice-style-colibre \ 
#     libreoffice-style-tango \  
#     ttf-mscorefonts-installer && \ 
#     rm -rf /var/lib/apt/lists/*